package com.farm.shiro.entity;

import com.farm.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.farm.common.entity.NumericalEntity;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "权限")
@TableName(value = "permission", keepGlobalPrefix = true)
public class Permission extends NumericalEntity {

    /**
     * 权限名
     */
    private String name;

    /**
     * 权限描述
     */
    private String description;

    /**
     * 权限请求URL
     */
    private String url;

    /**
     * 是否启用
     */
    private Boolean enabled = true;

}
